body{
  background-color: #f6f1f0;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  box-sizing: border-box; 
}
 /* Navbar wrapper */
  .navbar {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center; 
  }
  /* Logo */
  .nav-logo img {
    height: 45px;
    width: auto;
  }
  /* Links */
.nav-links a {
  text-decoration: none;
  color: #5a2c0a;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 100%;
  letter-spacing: 0;
  margin-left: 20px;
  transition: color 0.3s;
  }
  .nav-links a:hover {
    color: #e8551d;
  }
  /* Hamburger (mobile only) */
  .hamburger {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
  }
     .hero-section {
            display: flex;
            min-height: 100vh;
            background:  #FFE6D0 ;
            position: relative;
            z-index: 1;
            font-family: 'Popins', sans-serif;  
        }

        .hero-content {
            display: flex;
            width: 100%;
            height: 100%;
        }
.hero-text {
    flex: 1;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* <<< ini kuncinya */
    z-index: 3;
    transform: translateY(-55px); /* geser semua teks ke atas */
}
        .hero-text h1 {
            font-size: 48px;
            font-weight: 800;
            color: #5C1C14;
            line-height: 1.5;
            margin-bottom: 10px;
        }

        .hero-text p {
            font-size: 25px;
            color: #963C00;
            margin-bottom: 30px;
            max-width: 500px;
          
        }

              .hero-btn {
            display: inline-flex;
            align-items: center; /* biar teks & ikon sejajar */
            gap: 8px; /* jarak teks & panah */
            background:#963C00;
            color: #fff;
            padding: 10px 18px;
            font-family: 'Poppins', sans-serif;
            font-weight: 600;
            font-size: 13px;
            border-radius: 999px;
            text-decoration: none;
            transition: all 0.3s ease;
            width: auto;
        }
        .hero-btn:hover {
            background: #E05D00;
            transform: translateY(-3px);
        }
        .btn-arrow {
            transition: transform 0.3s ease;
        }
        .hero-btn:hover .btn-arrow {
            transform: translateX(4px); /* animasi panah geser ke kanan */
        }

        .hero-image {
            flex: 1;
            position: relative;
            height: 100vh;
            overflow: hidden;
        }

        .hero-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            margin-left: 20px;
        }

        /* Gradient Layer in Front of Image */
        .gradient-layer {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(280deg, rgba(217, 217, 217, 0) 10%, #FFE6D0 90%);
            z-index: 2;
        }

    /* Title */
    .section-title {
      font-size: 45px;
      color: #5B1C14;
      text-align: center;
      font-weight: 700;
      font-style: bold;
      margin: 10px 10px;
    font-family: 'Roboto', sans-serif;
}

.curved-top {
  position: relative;
  background: #fff;
  border-top-left-radius: 130px;
  border-top-right-radius: 130px;
  margin-top: -115px; /* overlap ke hero */
  z-index: 2;
  padding: 20px 10px 70px 70px ;
  font-family: 'Inter', sans-serif;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px 40px; /* jarak antar item lebih rapat */
  margin-top: 20px; /* mendekat ke judul */
  margin-left: 150px;
  margin-right: 150px;
}

.about-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.about-item .icon {
  display: flex;
  align-items: center; 
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: #ffffff; /* warna bulat di belakang icon */
  border-radius: 50%;
  box-shadow: 0 12px 9px rgba(0,0,0,0.08); /* bayangan tipis */
  padding: 8px;
   margin-top: 10px; 
  
}

.about-item .icon img {
  width: 30px;
  height: 30px;
}

.about-item h3 {
  margin-bottom: 2px; /* jarak h3 ke paragraf lebih rapat */
  font-size: 1rem;
  font-weight: 600;
  color:#5B1C14;
}

.about-item p {
  font-size: 0.9rem;
  line-height: 1.4;
  color:#963C00;
}
    /* Benefit Section */
    .benefit-wrapper {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 20px;
      margin-top: 30px;
    }
    .benefit-card {
      background: #fff;
      width: 300px;
      padding: 20px;
      border-radius: 10px;
      text-align: center;
      box-shadow: 0 2px 10px rgba(0,0,0,0.05);
      transition: transform 0.3s ease;
    }
    .benefit-card:hover {
      transform: translateY(-8px);
    }
        .benefit-icon {
      position: relative;
      width: 70px;
      height: 70px;
      margin: 0 auto 15px;
    }
    .icon-box {
      position: absolute;
      top: 0;
      left: 0;
      z-index: 1;
    }
    .icon-inner {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 2;
    }

    .benefit-card h4 {
      font-size: 18px;
      color: #5C1C14;
      margin-bottom: 10px;
      font-family: 'Inter', sans-serif;
    }
    .benefit-card p {
      font-size: 14px;
      color: #963C00;
      font-family: 'Inter', sans-serif;
    }
    /* Badge */
    .badge {
      display: inline-block;
      background: #fddac7;
      color: #e8551d;
      padding: 5px 15px;
      border-radius: 20px;
      font-size: 14px;
      margin: 0 auto 20px;
      text-align: center;
    }
/* === Scroll Horizontal Semua Device === */
.benefit-scroll {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 10px 20px; /* biar gak mepet pinggir */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Hilangkan scrollbar */
.benefit-scroll::-webkit-scrollbar {
  display: none;
}
.benefit-scroll {
  -ms-overflow-style: none;  /* IE dan Edge */
  scrollbar-width: none;     /* Firefox */
}

.benefit-card {
  flex: 0 0 calc(33.333% - 16px); /* tampil 3 card dulu */
  scroll-snap-align: center;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* === Icon kotak gradient === */
.benefit-icon {
  position: relative;
  display: inline-block;
  width: 70px;
  height: 70px;
  margin-bottom: 10px;
}

.benefit-icon .icon-box {
  width: 70px;
  height: 70px;
}

.benefit-icon .icon-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 35px;
  height: 35px;
}


/* PROGRAM SECTION - UPDATED */
.program-section {
  padding: 60px 20px;
}

.program-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 60px;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
}

/* Reverse layout for even items */
.program-item.reverse {
  flex-direction: row-reverse;
}

.program-text, 
.program-image {
  flex: 1 1 45%;
  min-width: 300px;
}



/* Text content styling */
.program-text {
  padding: 20px;
}

.program-label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #e8551d;
  margin-bottom: 8px;
}

.program-title {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #5c1c14;
  margin-bottom: 15px;
  line-height: 1.3;
}

.program-desc {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #963C00;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Button styling */
.program-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #963C00;
  color: #fff;
  padding: 12px 24px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.program-btn:hover {
  background: #e8551d;
  transform: translateY(-2px);
}

.program-btn .btn-arrow {
  transition: transform 0.3s ease;
}

.program-btn:hover .btn-arrow {
  transform: translateX(4px);
}
/* PROGRAM IMAGE SIZE FIX */

/* PROGRAM IMAGE - ORIGINAL STYLE ONLY RESIZED */
.program-image {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
}

.program-image img {
  width: 100%;
  max-width: 500px; /* Ukuran default */
  height: auto;
  display: block;
}

.carousel-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.carousel-wrapper::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.carousel-track {
  display: flex;
  gap: 20px;
  padding-bottom: 10px;
}

.branch-card {
  flex: 0 0 280px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
  padding: 15px;
}
.branch-card img {
  width: 100%;
  height: 180px;
  border-radius: 10px;
  object-fit: cover;
}

  /* Card */
  .branch-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
    min-width: 280px;
    max-width: 300px;
    flex-shrink: 0;
    padding-bottom:20px;
  }
  .branch-card img {
    width: 100%;
    border-radius: 10px 10px 0 0;
    height:180px;
    object-fit: cover;
  }
  .branch-card h4 {
    font-size: 20px;
    color: #5a2c0a;
    margin: 15px 0;
    font-family: 'Inter', sans-serif;
  }
  .branch-btn {
    display:inline-block;
    background:#7b3d0e;
    color:#fff;
    padding:8px 18px;
    border-radius:20px;
    text-decoration:none;
    transition: 0.3s;
    font-family: 'Inter', sans-serif;
  }
  .branch-btn:hover {background:#e8551d;}

  /* Buttons */
  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    font-size: 28px;
    color: #5a2c0a;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: 0.3s;
    z-index: 5;
  }
  .carousel-btn:hover {background: #f1f1f1;}
  .carousel-btn.prev {left: -15px;}
  .carousel-btn.next {right: -15px;}

  /* Footer */
  .footer {
    background: #111;
    color: #ccc;
    padding: 50px 20px;
    font-size: 14px;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 40px;
  }
  .footer-logo {
    max-width: 160px;
    margin-bottom: 15px;
  }
  .footer-brand p {color:#aaa; margin-bottom:20px;}
  .footer-social a {margin-right:10px; display:inline-block;}
  .footer h4 {
    color:#fff;
    font-size:16px;
    margin-bottom:15px;
  }
  .footer ul {list-style:none; padding:0;}
  .footer ul li {margin-bottom:8px;}
  .footer .contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.footer .contact-list img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

  .footer ul li a {
    color: #FFFFFF85;
    text-decoration:none;
    transition:color 0.3s;
  }
  .footer ul li a:hover {color:#e8551d;}
  .footer p a {
    color:#ccc;
    text-decoration:none;
  }
  .footer p a:hover {color:#e8551d;}

  #fab {
    position: fixed; 
    bottom: 20px; 
    right: 20px;
    width: 55px;
    height: 55px;
    background: green;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    cursor: pointer;
    opacity: 0;
    animation: fadeSlide 0.8s ease-out forwards;
  }
  #fab:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
  }

  /* Animasi muncul */
  @keyframes fadeSlide {
    0% { transform: translateY(50px); opacity:0; }
    100% { transform: translateY(0); opacity:1; }
  }

/* Untuk bagde dan sparkle di tentang,benefit,Cobang,program */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fddac7;
  color: #e8551d;
  padding: 5px 15px;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  margin: 20px 20px;
  text-align: center;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  
}
.badge img {
  width: 16px;
  height: 16px;
}

/* ========== MOBILE FIRST RESPONSIVE ADJUSTMENTS ========== */

/* Navigation for mobile */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    z-index: 1000;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 80px 20px;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  }
  
  .nav-links.show {
    right: 0;
  }
  
  .nav-links a {
    margin: 15px 0;
    font-size: 16px;
  }
}

/* Hero section adjustments */
@media (max-width: 1024px) {
  .hero-section {
    flex-direction: column-reverse;
    min-height: auto;
  }
  
  .hero-text {
    padding: 40px 20px;
    align-items: center;
    text-align: center;
    transform: none;
  }
  
  .hero-text h1 {
    font-size: 36px;
    line-height: 1.3;
  }
  
  .hero-text p {
    font-size: 18px;
    margin: 0 auto 25px;
  }
  
  .hero-image {
    height: 350px;
    width: 100%;
  }
  
  .hero-image img {
    margin-left: 0;
  }
}

/* About section grid */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    margin-left: 40px;
    margin-right: 40px;
  }
  
  .about-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .about-item .icon {
    margin-top: 0;
    margin-bottom: 15px;
  }
}

/* Program section adjustments */
@media (max-width: 1200px) {
  .program-item {
    margin-left: 50px;
    margin-right: 50px;
  }
}

@media (max-width: 768px) {
  .program-item {
    flex-direction: column;
    margin-left: 20px;
    margin-right: 20px;
    gap: 20px;
  }
  
  .program-item.reverse {
    flex-direction: column;
  }
  
  .program-text, 
  .program-image {
    flex: 1 1 100%;
    text-align: center;
  }
  
  .program-image img {
    max-width: 100%;
    height: auto;
  }
}

/* Curved top section */
@media (max-width: 768px) {
  .curved-top {
    margin-top: -50px;
    border-radius: 60px 60px 0 0;
    padding: 40px 20px;
  text-align: center;
  }
}

/* Benefit cards */
@media (max-width: 992px) {
  .benefit-wrapper {
    justify-content: center;
  }
  
  .benefit-card {
    width: 280px;
  }
}

/* Branch carousel */
@media (max-width: 768px) {
  .branch-card {
    min-width: 240px;
  }
}

/* Footer adjustments */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .footer .contact-list {
    justify-content: center;
  }
}

/* Typography scaling */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 28px;
  }
  
  .hero-text p {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .program-title {
    font-size: 24px;
  }
  
  .badge {
    font-size: 13px;
  }
}

/* Very small devices */
@media (max-width: 360px) {  
  #fab {
    width: 45px;
    height: 45px;
  }
}

/* Orientation adjustments */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: 30px 0;
  }
  
  .hero-image {
    height: 250px;
  }
}

/* ======== FIX HERO SPACING & OVERLAY ======== */

/* 1. Portrait Mode - Hilangkan jarak antara navbar & hero */
@media screen and (orientation: portrait) {
  .hero-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

/* ========== HERO SECTION RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-section {
    flex-direction: column;
    min-height: auto;
  }
  
  .hero-content {
    flex-direction: column;
  }
  
  .hero-text {
    order: 2; /* Teks akan berada di bawah (setelah gambar) */
    padding: 30px 20px;
    align-items: center;
    text-align: center;
    transform: none; /* Hapus transform yang sebelumnya ada */
  }
  
  .hero-image {
    order: 1; /* Gambar akan berada di atas (sebelum teks) */
    height: 40vh;
    width: 100%;
  }
  
  .hero-image img {
    margin-left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .gradient-layer {
    background: linear-gradient(0deg, rgba(255,230,208,1) 0%, rgba(255,230,208,0.8) 20%, rgba(255,230,208,0.4) 40%, rgba(255,255,255,0) 100%);
  }
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 32px;
    line-height: 1.3;
  }
  
  .hero-text p {
    font-size: 18px;
    margin-bottom: 25px;
  }
  
  .hero-image {
    height: 35vh;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 28px;
  }
  
  .hero-text p {
    font-size: 16px;
  }
  
  .hero-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .hero-image {
    height: 30vh;
  }
}

/* Untuk perangkat dengan orientasi landscape */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: 20px 0;
  }
  
  .hero-image {
    height: 50vh;
  }
  
  .hero-text {
    padding: 20px;
  }
  
  .hero-text h1 {
    font-size: 28px;
  }
  
  .hero-text p {
    font-size: 16px;
    margin-bottom: 15px;
  }
}
@media (max-width: 768px) {
  .hero-btn, 
  .btn-register {

    margin-bottom: 40px;
  }
}

/* ========== BADGE TENTANG RESPONSIVE ========== */
@media (max-width: 768px) {
  .badge {
    position: static;
    left: auto;
    transform: none;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    width: fit-content;
  }
  
  /* Penyesuaian khusus untuk badge di section tentang */
  .curved-top .badge {
    margin: 0 auto 25px auto;
  }
}

/* Untuk perangkat sangat kecil */
@media (max-width: 480px) {
  .badge {
    font-size: 13px;
    padding: 6px 14px;
    margin: 15px auto;
  }
  
  .curved-top .badge {
    margin: 0 auto 20px auto;
  }
}
/* ========== FOOTER RESPONSIVE ========== */
@media (max-width: 992px) {
  .footer-grid {
    text-align: center;
    justify-items: center;
  }
  
  .footer .contact-list {
    justify-content: center;
  }
  
  .footer .contact-list li {
    justify-content: center;
  }
  
  .footer-social {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
  }
}

/* Untuk perangkat sangat kecil */
@media (max-width: 480px) {
  .footer {
    padding: 30px 15px;
  }
  
  .footer-grid {
    gap: 25px;
  }
  
  .footer h4 {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .footer ul li {
    margin-bottom: 6px;
  }
}


/* ========== HAMBURGER MENU VERTICAL ========== */
@media (max-width: 768px) {
  /* Tampilkan hamburger button */
  .hamburger {
    display: block;
    z-index: 1001;
    position: relative;
    font-size: 24px;
    padding: 5px;
  }
  
  /* Sembunyikan nav links default */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 60%; /* Lebar dikurangi agar tidak terlalu besar */
    height: auto; /* Tinggi menyesuaikan konten */
    min-height: 100vh;
    background: #fff;
    flex-direction: column;
    justify-content: flex-start; /* Mulai dari atas */
    align-items: center;
    padding: 70px 15px 30px; /* Padding disesuaikan */
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    display: flex;
    overflow-y: auto;
  }
  
  /* Tampilkan nav links ketika menu aktif */
  .nav-links.active {
    right: 0;
  }
  
  /* Atur tata letak vertikal untuk link navigasi */
  .nav-links a {
    margin: 10px 0; /* Jarak antar item dikurangi */
    font-size: 15px;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
  }
  
  /* Hapus margin left pada mobile */
  .nav-links a {
    margin-left: 0;
  }
  
  /* Style untuk link terakhir */
  .nav-links a:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }
}

/* ========== FOOTER RESPONSIVE ========== */
@media (max-width: 992px) {
  .footer {
    padding: 30px 15px;
  }
  
  .footer-grid {
    text-align: center;
    justify-items: center;
    gap: 25px;
  }
  
  .footer .contact-list {
    justify-content: center;
    text-align: center;
  }
  
  .footer .contact-list li {
    justify-content: center;
    text-align: center;
    margin-bottom: 8px;
  }
  
  .footer-social {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    gap: 10px;
  }
  
  /* Pastikan semua elemen footer di tengah */
  .footer-brand, .footer-links, .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-logo {
    margin-bottom: 10px;
  }
}

/* Untuk perangkat sangat kecil */
@media (max-width: 480px) {
  .nav-links {
    width: 70%; /* Sedikit lebih lebar di perangkat sangat kecil */
    padding: 60px 10px 20px;
  }
  
  .nav-links a {
    font-size: 14px;
    padding: 8px 0;
    margin: 8px 0;
  }
  
  .footer {
    padding: 25px 10px;
  }
  
  .footer-grid {
    gap: 20px;
  }
  
  .footer h4 {
    font-size: 16px;
    margin-bottom: 10px;
  }
  
  .footer ul li {
    margin-bottom: 5px;
    font-size: 13px;
  }
  
  /* Perbaikan tambahan untuk contact list di mobile */
  .footer .contact-list li {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
  }
  
  .footer .contact-list img {
    margin-top: 0;
  }
}